#ifndef PAGEEBTRIGREASON_H
#define PAGEEBTRIGREASON_H

#define ROWSINCOL_EB 11

#include <QWidget>
#include <QLabel>
#include "global_def.h"

namespace Ui {
class PageEBTrigReason;
}

class PageEBTrigReason : public QWidget
{
    Q_OBJECT

public:
    explicit PageEBTrigReason(QWidget *parent = nullptr);
    ~PageEBTrigReason();
    void setEBTrigStat(int index, int stat);
private:
    Ui::PageEBTrigReason *ui;
signals:
    void signal_go_back();
    void signal_EB_trig(bool xTrig);
private slots:
    void on_Btn_Return_clicked();
private:
    QList <QLabel*> m_lEBTrigLabels;
    QStringList m_lEBTrigReasons;
    QList <uint8_t> m_lEBRigStats;
    uint m_nTopSpace;
    uint m_nBottomSpace;
    uint m_nHSpace;
    uint m_nVSpace;
    uint m_nSideSpace;
    uint m_nLabelLen;
    uint m_nLabelHeight;
    uint m_nStartx,m_nStarty;
private:
    void InitEBTrigLabels();
};

#endif // PAGEEBTRIGREASON_H
